package com.study.demo.dao;

import com.study.demo.domain.UserDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<UserDO,Long> {

    /***
     * 通过解析方法名创建的查询
     * @param name
     * @return
     */
    UserDO findByName(String name);

    UserDO findByNameAndAge(String name,Integer age);

}
